//package com.personalblog.interceptor;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.HandlerInterceptor;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
///**
// * @author jxau_scf
// * @date 2021/3/22 - 13:00
// */
//@Configuration
//public class LoginInterceptor implements HandlerInterceptor {
////    @Override
////    public boolean preHandle(HttpServletRequest request,
////                             HttpServletResponse response,
////                             Object handler) throws Exception {
//////        String uri = request.getRequestURI();
//////        if (uri.endsWith("js")||uri.endsWith("css")||uri.endsWith("jpg")||uri.endsWith("svg")){
//////            return true ;
//////        }
////
//////        if(request.getSession().getAttribute("user") == null){
//////            response.sendRedirect(request.getContextPath()+"/admin");
//////            return false;
//////        }
////        return true;
////    }
//}
